If osmeone else does the new[] for you?
If osmeone else does the new[] for you?
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
Could he mean if there is a new[] inside a conditional? At which point this might happen:
Code:int* ptr_var = 0; //... possibility of ptr_var = new int[SIZE] delete [] ptr_var;
I mean that or anything that you can think of.
Can you explain what you mean by "new[] inside a conditional"?
Whether the allocation was based on a condition. But that still means the delete has a corresponding new...Originally Posted by ChadJohnson